<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>季节</title>
    <script>
        var month = prompt("请输入月份","");
        switch(parseInt(month)){
            case 12:
            case 1:
            case 2:
            document.write("冬季");
            break;
            case 3:
            case 4:
            case 5:
            document.write("春季");
            break;
            case 6:
            case 7:
            case 8:
            document.write("夏季");
            break;
            case 9:
            case 10:
            case 11:
            document.write("秋季");
            break;
            default:
            document.write("输入错误");
            break;
        }
    </script>
</head>
<body>
    
</body>
</html>